import ISendMsg from './form/ISendMsg'
import ISupportApp from './form/ISupportApp'
import wxApp from './wxApp'

let appApi: ISupportApp = {
  type: -1,
  supportFlag: false,
  sendMsg: (form: ISendMsg) => {},
}

if (wxApp.supportFlag) {
  // 如果是微信小程序
  appApi = wxApp
}

export default appApi
